package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

/**
 * @ProjectName: sky-take-out
 * @Titile: DishServbice
 * @Author: 霍静
 * @Description: TODO
 */

public interface DishService {
     void saveWithFlavor(DishDTO dishDTO);

     // 分页查询菜品
     PageResult page(DishPageQueryDTO dishPageQueryDTO);

     //批量删除
     void delete(Long[] ids);

     //启售停售
     void startOrStop(Integer status, Long id);

     //菜品修改
     void updateWithFlavor(DishDTO dishDTO);

     DishVO getById(Long id);

     //根据分类id查询菜品
     List<Dish> list(Long categoryId);

}
